<?php

namespace haibao\cms\business;

class ArticleHistory extends Base{
	/**
	 * 
	 * @param \haibao\cms\model\filter\ArticleHistory $articleHistoryFilter
	 */
	public static function getArticleHistoryList($articleHistoryFilter){
		$data = new \haibao\cms\data\ArticleHistory();
		return $data->getArticleHistoryList($articleHistoryFilter);
	}
	/**
	 * @param $int $id
	 */
	public static function getArticleHistoryById($id){
		if(!$id){
			throw new BusinessException('文章历史id不能为空',self::DATA_EMPTY_ID);
		}
		$data = new \haibao\cms\data\ArticleHistory();
		return $data->getOneById($id);
	}
}